home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Communication / GMC-BBS-260 / InstallLibs < prev    next >
Text File  |  1998-06-24  |  5KB  |  130 lines

  1. .K ""
  2. echo "This script installs the XPR-Libraries after checking if they are"
  3. echo "available. If they are available you will be asked if you really"
  4. echo "want to install them."
  5. echo ""
  6. echo "Dieses Script installiert die XPR-Libraries nachdem es überprüft hat"
  7. echo "ob diese nicht schon vorhanden sind. Wenn das der Fall ist werden Sie"
  8. echo "gefragt ob Sie wirklich diese Installation vornehmen wollen."
  9.  
  10. echo ""
  11. ask "Press Enter to continue - Drücken Sie Enter um fortzufahren"
  12.  
  13. protect devs:narrator.device rwed
  14. copy xpr_libs/narrator.device devs:narrator.device
  15. protect libs:translator.library rwed
  16. copy xpr_libs/translator.library libs:translator.library
  17.  
  18. echo ""
  19. echo "checking - Überprüfe xprymodem.library..."
  20. if not EXISTS libs:xprymodem.library
  21.   echo "Library does not exist. Installing libs:xprymodem.library..."
  22.   echo "Library existiert nicht. Installiere libs:xprymodem.library..."
  23.   copy xpr_libs/xprymodem.library libs:xprymodem.library
  24. else
  25.   echo "The current version is 2.20 - Die aktuelle Version ist 2.20"
  26.   failat 20
  27.   echo "Found version is: - Die gefundene Version ist:"
  28.   version xprymodem.library 2 20
  29.   if WARN
  30.     echo "Do you want to overwrite the library libs:xprymodem.library? [y/N]"
  31.     ask "Wollen Sie die Library libs:xprymodem.library überschreiben? [y/N]"
  32.     if WARN
  33.       echo "overwriting - Überschreibe libs:xprymodem.library..."
  34.       protect libs:xprymodem.library rwed
  35.       copy xpr_libs/xprymodem.library libs:xprymodem.library
  36.     else
  37.       echo "libs:xprymodem.library unchanged - wurde nicht verändert"
  38.     endif
  39.   else
  40.     echo "The installed version is up to date."
  41.     echo "Die installierte Version ist aktuell."
  42.   endif
  43. endif
  44.  
  45. echo ""
  46. echo "checking - Überprüfe xprzmodem.library..."
  47. if not EXISTS libs:xprzmodem.library
  48.   echo "Library does not exist. Installing libs:xprzmodem.library..."
  49.   echo "Library existiert nicht. Installiere libs:xprzmodem.library..."
  50.   copy xpr_libs/xprzmodem.library libs:xprzmodem.library
  51. else
  52.   echo "The current version is 2.56 - Die aktuelle Version ist 2.56"
  53.   failat 20
  54.   echo "Found version is: - Die gefundene Version ist:"
  55.   version xprzmodem.library 2 56
  56.   if WARN
  57.     echo "Do you want to overwrite the library libs:xprzmodem.library? [y/N]"
  58.     ask "Wollen Sie die Library libs:xprzmodem.library überschreiben? [y/N]"
  59.     if WARN
  60.       echo "overwriting - Überschreibe libs:xprzmodem.library..."
  61.       protect libs:xprzmodem.library rwed
  62.       copy xpr_libs/xprzmodem.library libs:xprzmodem.library
  63.     else
  64.       echo "libs:xprzmodem.library unchanged - wurde nicht verändert."
  65.     endif
  66.   else
  67.     echo "The installed version is up to date."
  68.     echo "Die installierte Version ist aktuell."
  69.   endif
  70. endif
  71.  
  72. echo ""
  73. echo "checking - Überprüfe xprzmodem32k.library..."
  74. if not EXISTS libs:xprzmodem32k.library
  75.   echo "Library does not exist. Installing libs:xprzmodem32k.library..."
  76.   echo "Library existiert nicht. Installiere libs:xprzmodem32k.library..."
  77.   copy xpr_libs/xprzmodem32k.library libs:xprzmodem32k.library
  78. else
  79.   echo "The current version is 2.0 - Die aktuelle Version ist 2.0"
  80.   failat 20
  81.   echo "Found version is: - Die gefundene Version ist:"
  82.   version xprzmodem32k.library 2 0
  83.   if WARN
  84.     echo "Do you want to overwrite the library libs:xprzmodem32k.library? [y/N]"
  85.     ask "Wollen Sie die Library libs:xprzmodem32k.library überschreiben? [y/N]"
  86.     if WARN
  87.       echo "overwriting - Überschreibe libs:xprzmodem32k.library..."
  88.       protect libs:xprzmodem32k.library rwed
  89.       copy xpr_libs/xprzmodem32k.library libs:xprzmodem32k.library
  90.     else
  91.       echo "libs:xprzmodem32k.library unchanged - wurde nicht verändert."
  92.     endif
  93.   else
  94.     echo "The installed version is up to date."
  95.     echo "Die installierte Version ist aktuell."
  96.   endif
  97. endif
  98.  
  99. echo ""
  100. echo "checking - Überprüfe xprbimodem.library..."
  101. if not EXISTS libs:xprbimodem.library
  102.   echo "Library does not exist. Installing libs:xprbimodem.library..."
  103.   echo "Library existiert nicht. Installiere libs:xprbimodem.library..."
  104.   copy xpr_libs/xprbimodem.library libs:xprbimodem.library
  105. else
  106.   echo "The current version is 1.40 - Die aktuelle Version ist 1.40"
  107.   failat 20
  108.   echo "Found version is: - Die gefundene Version ist:"
  109.   version xprbimodem.library 1 40
  110.   if WARN
  111.     echo "Do you want to overwrite the library libs:xprbimodem.library? [y/N]"
  112.     ask "Wollen Sie die Library libs:xprbimodem.library überschreiben? [y/N]"
  113.     if WARN
  114.       echo "overwriting - Überschreibe libs:xprbimodem.library..."
  115.       protect libs:xprbimodem.library rwed
  116.       copy xpr_libs/xprbimodem.library libs:xprbimodem.library
  117.     else
  118.       echo "libs:xprbimodem.library unchanged - wurde nicht verändert."
  119.     endif
  120.   else
  121.     echo "The installed version is up to date."
  122.     echo "Die installierte Version ist aktuell."
  123.   endif
  124. endif
  125.  
  126. echo ""
  127. echo "Finished. Klick on the Close Gadget to get rid of the window."
  128. echo "Fertig. Klicken Sie auf das Close Gadget um das Fenster zu schließen."
  129. endcli
  130.